﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MobileResourceMasterPage.master" EnableEventValidation="false" AutoEventWireup="true" CodeFile="Student.aspx.cs" Inherits="Studentpage" %>

<%@ Register src="../Controls/PersonInformation.ascx" tagname="PersonInformation" tagprefix="uc1" %>

<%@ Register src="../Controls/personal.ascx" tagname="personal" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="MainBody">
    <div id="navMenu">
    <ul>
        <li class="onelink"><a href='Student.aspx'>首页</a></li>
        <resource><asp:HyperLink ID="HyperLink24" runat="server" NavigateUrl="StuNewInformation.aspx">最新资源</asp:HyperLink></resource>
        <li><a rel='dropmenu1'>资源分类</a></li>
        <li><a href='StudentUpdate.aspx'>上传资源</a></li>        
        <li><a href='../reco_course.aspx'>最优推荐</a></li>
        <li></li>
        <li><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></li>
        <li><asp:Button ID="Button2" runat="server" Text="搜索" onclick="Button2_Click" style="float:right;margin-top:10px" /> 
        </li>
    
        </ul>

    </div>
           <script type='text/javascript' src='../Scripts/dropdown.js'></script>
<ul id="dropmenu1" class="dropMenu">
    <li><a href="StudentRe.aspx?name=全部资源&type=0" >全部资源</a></li>
    <li><a href="StudentRe.aspx?name=计算机&type=1" >计算机</a></li>
    <li><a href="StudentRe.aspx?name=通信&type=2" >通信</a></li>
    <li><a href="StudentRe.aspx?name=环化&type=3" >环化</a></li>
    <li><a href="StudentRe.aspx?name=机自&type=4" >机自</a></li>
    <li><a href="StudentRe.aspx?name=土木&type=5" >土木</a></li>
    <li><a href="StudentRe.aspx?name=文学院&type=6" >文学院</a></li>
    <li><a href="StudentRe.aspx?name=美院&type=7" >美院</a></li>
    <li><a href="StudentRe.aspx?name=影视&type=8" >影视</a></li>
    <li><a href="StudentRe.aspx?name=社科&type=9" >社科</a></li>
    <li><a href="StudentRe.aspx?name=理院&type=10" >理院</a></li>
    <li><a href="StudentRe.aspx?name=能源与动力工程&type=11" >能源与动力工程</a></li>
    <li><a href="StudentRe.aspx?name=法学院&type=12" >法学院</a></li>
    <li><a href="StudentRe.aspx?name=汽车&type=13" >汽车</a></li>
    <li><a href="StudentRe.aspx?name=电气自动化&type=14" >电气自动化</a></li>
    <li><a href="StudentRe.aspx?name=管院&type=15" >管院</a></li>
    <li><a href="StudentRe.aspx?name=新闻系&type=16" >新闻系</a></li>
    <li><a href="StudentRe.aspx?name=外语学院&type=17" >外语学院</a></li>
    <li><a href="StudentRe.aspx?name=信息安全&type=18" >信息安全</a></li>
    <li><a href="StudentRe.aspx?name=房地产学院&type=19" >房地产学院</a></li>
    <li class="end" ></li>
</ul>
<script type="text/javascript">    cssdropdown.startchrome("navMenu")</script>
    <div class="Left"> 
        <uc2:personal ID="personal1" runat="server" />

    <asp:TreeView ID="TreeView1" runat="server">
        <Nodes>
            <asp:TreeNode Text="首页" Value="首页" NavigateUrl="Student.aspx"></asp:TreeNode>
            <asp:TreeNode Text="最新资源" Value="最新资源" NavigateUrl="StuNewInformation.aspx"></asp:TreeNode>
            <asp:TreeNode Text="资源分类" Value="资源分类" Expanded="false">
                <asp:TreeNode Text="所有资源" Value="所有资源" NavigateUrl="StudentRe.aspx?name=全部资源&type=0"></asp:TreeNode>
                <asp:TreeNode Text="计算机" Value="计算机" NavigateUrl="StudentRe.aspx?name=全部资源&type=1"></asp:TreeNode>
                <asp:TreeNode Text="通信" Value="通信" NavigateUrl="StudentRe.aspx?name=全部资源&type=2"></asp:TreeNode>
                <asp:TreeNode Text="环化" Value="环化" NavigateUrl="StudentRe.aspx?name=全部资源&type=3"></asp:TreeNode>
                <asp:TreeNode Text="机自" Value="机自" NavigateUrl="StudentRe.aspx?name=全部资源&type=4"></asp:TreeNode>
                <asp:TreeNode Text="土木" Value="土木" NavigateUrl="StudentRe.aspx?name=全部资源&type=5"></asp:TreeNode>
                <asp:TreeNode Text="文学院" Value="文学院" NavigateUrl="StudentRe.aspx?name=全部资源&type=6"></asp:TreeNode>
                <asp:TreeNode Text="美院" Value="美院" NavigateUrl="StudentRe.aspx?name=全部资源&type=7" Selected="True"></asp:TreeNode>
                <asp:TreeNode Text="影视" Value="影视" NavigateUrl="StudentRe.aspx?name=全部资源&type=8"></asp:TreeNode>
                <asp:TreeNode Text="社科" Value="社科" NavigateUrl="StudentRe.aspx?name=全部资源&type=9"></asp:TreeNode>
                <asp:TreeNode Text="理院" Value="理院" NavigateUrl="StudentRe.aspx?name=全部资源&type=10"></asp:TreeNode>
                <asp:TreeNode Text="能源与动力工程" Value="能源与动力工程" NavigateUrl="StudentRe.aspx?name=全部资源&type=11"></asp:TreeNode>
                <asp:TreeNode Text="法学院" Value="法学院" NavigateUrl="StudentRe.aspx?name=全部资源&type=12"></asp:TreeNode>
                <asp:TreeNode Text="汽车" Value="汽车" NavigateUrl="StudentRe.aspx?name=全部资源&type=13"></asp:TreeNode>
                <asp:TreeNode Text="电气自动化" Value="电气自动化" NavigateUrl="StudentRe.aspx?name=全部资源&type=14"></asp:TreeNode>
                <asp:TreeNode Text="管院" Value="管院" NavigateUrl="StudentRe.aspx?name=全部资源&type=15"></asp:TreeNode>
                <asp:TreeNode Text="新闻系" Value="新闻系" NavigateUrl="StudentRe.aspx?name=全部资源&type=16"></asp:TreeNode>
                <asp:TreeNode Text="外语学院" Value="外语学院" NavigateUrl="StudentRe.aspx?name=全部资源&type=17"></asp:TreeNode>
                <asp:TreeNode Text="信息安全" Value="信息安全" NavigateUrl="StudentRe.aspx?name=全部资源&type=18"></asp:TreeNode>
                <asp:TreeNode Text="房地产学院" Value="房地产学院" NavigateUrl="StudentRe.aspx?name=全部资源&type=19"></asp:TreeNode>
            </asp:TreeNode>
            <asp:TreeNode Text="上传资源" Value="上传资源" NavigateUrl="StudentUpdate.aspx"></asp:TreeNode>
            <asp:TreeNode Text="最优推荐" Value="最优推荐" NavigateUrl="StuRecommand.aspx"></asp:TreeNode>
        </Nodes>
    </asp:TreeView>
    <iframe src="../activeperson.aspx" scrolling="no" style = "height:150px" width="160px" frameborder="0"></iframe>
        <div style="width: 150px; float:left; font-size:small; margin-left:5px">
    <div style="width: 150px; float:left; background:url(../Picture/content_green.gif); margin-bottom:4px">
        <asp:Label ID="LabelTitle" runat="server" Text="月下载榜"></asp:Label>
        <asp:Button ID="ButtonMonth" runat="server" Text="月" Width="27px" 
            onclick="ButtonMonth_Click" />
        <asp:Button ID="ButtonYear" runat="server" Text="年" Width="27px" 
            onclick="ButtonYear_Click" />
        <asp:Button ID="ButtonAll1" runat="server" Text="总" ViewStateMode="Enabled" 
            Width="27px" onclick="ButtonAll_Click1" />
        </div>
    <div style="width: 130px; color:#004E00; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:HyperLink ID="HyperLinkRank1" runat="server" Text="HyperLink" 
            ForeColor="#004E00"></asp:HyperLink>
    </div>
    <div style="width: 20px; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:Label ID="LabelCount1" runat="server" Text="Label"></asp:Label>
    </div>
         <div style="width: 130px; color:#004E00; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
         <asp:HyperLink ID="HyperLinkRank2" runat="server" Text="HyperLink" 
                 ForeColor="#004E00"></asp:HyperLink>
    </div>
        <div style="width: 20px; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:Label ID="LabelCount2" runat="server" Text="Label"></asp:Label>
    </div>
         <div style="width: 130px; color:#004E00; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:HyperLink ID="HyperLinkRank3" runat="server" Text="HyperLink" 
                 ForeColor="#004E00"></asp:HyperLink>
    </div>
        <div style="width: 20px; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:Label ID="LabelCount3" runat="server" Text="Label"></asp:Label>
    </div>
         <div style="width: 130px; color:#004E00; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:HyperLink ID="HyperLinkRank4" runat="server" Text="HyperLink" 
                 ForeColor="#004E00"></asp:HyperLink>
    </div>
        <div style="width: 20px; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:Label ID="LabelCount4" runat="server" Text="Label"></asp:Label>
    </div>
        <div style="width: 130px; color:#004E00; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:HyperLink ID="HyperLinkRank5" runat="server" Text="HyperLink" 
                ForeColor="#004E00"></asp:HyperLink>
    </div>
        <div style="width: 20px; float:left; border-bottom-style:dotted; border-bottom-width:thin; margin-bottom:4px;">
        <asp:Label ID="LabelCount5" runat="server" Text="Label"></asp:Label>
    </div>
    </div>
<div style ="float:left;margin-left:3px;margin-top:2px">
<asp:HyperLink ID="HyperLinkRecentComment" runat="server">HyperLink</asp:HyperLink>
</div>
<div style ="float:left;margin-left:3px;margin-top:2px">
<asp:HyperLink ID="HyperLinkRecentDownload" runat="server">HyperLink</asp:HyperLink>
</div>
    </div>
    <div class="Center">
    <div style="margin-left:220px;margin-top:10px">
        <asp:Label ID="Label1" runat="server" Text="我的上传"></asp:Label></div>
        <div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  OnPageIndexChanging="GridView1_PageIndexChanging"
        CellPadding="4" ForeColor="#333333" GridLines="None"  RowStyle-HorizontalAlign="Center"
        onrowcommand="GridView1_RowCommand" AllowSorting="True">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
            <asp:BoundField DataField="rid" HeaderText="rid" />
            <asp:ImageField DataImageUrlField="image" HeaderText="logo">
            </asp:ImageField>
            <asp:BoundField DataField="rname" HeaderText="rname" />
            <asp:BoundField DataField="keyword" HeaderText="keyword" />
            <asp:BoundField DataField="score" HeaderText="score" />
            <asp:HyperLinkField DataNavigateUrlFields="rid" 
                    DataNavigateUrlFormatString="../comment.aspx?rid={0}" DataTextField="information" 
                    HeaderText="评论" />
              <asp:ButtonField ButtonType="Button"
 CommandName="delete" Text="删除" /> 
 <asp:ButtonField ButtonType="Button"
 CommandName="download" Text="下载" /> 
        </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView> 
    </div>  
    <div style="margin-left:220px;margin-top:10px">
        <asp:Label ID="Label2" runat="server" Text="我的下载"></asp:Label></div>
        <div>
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"  OnPageIndexChanging="GridView1_PageIndexChanging"
        CellPadding="4" ForeColor="#333333" GridLines="None"  RowStyle-HorizontalAlign="Center"
        onrowcommand="GridView1_RowCommand" AllowSorting="True">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
            <asp:BoundField DataField="rid" HeaderText="rid" />
            <asp:ImageField DataImageUrlField="image" HeaderText="logo">
            </asp:ImageField>
            <asp:BoundField DataField="rname" HeaderText="rname" />
            <asp:BoundField DataField="keyword" HeaderText="keyword" />
            <asp:BoundField DataField="score" HeaderText="score" />
            <asp:HyperLinkField DataNavigateUrlFields="rid" 
                    DataNavigateUrlFormatString="../comment.aspx?rid={0}" DataTextField="information" 
                    HeaderText="评论" />
 <asp:ButtonField ButtonType="Button"
 CommandName="download" Text="下载" /> 
        </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView> 
    </div>  
    
    </div>
    <div class="Right">
    <div>
    <iframe src="../iframe_course.aspx" scrolling="no" style="height: 110px" width="300" frameborder="0">
    </iframe>
    </div>
    <div>
    <iframe src="../iframe_parameter.aspx" scrolling="no" style="height: 280px" width="300px" frameborder="0">
    </iframe>
    </div>
    </div>
</div>
</asp:Content>

